{include file="header"}
<div class="body">
    <div class="nav"><a href="/xcxmb/public/admin/first/index">首页</a> > <a href="/xcxmb/public/admin/banner">轮播图管理</a></div>
    <div class="addbtn">
    <a href="add" class="addbtn">添加轮播图</a>
</div>
<form action="index" method="get">
    <div class="search">
        <input type="hidden" name="app" id="app" value="banner"/>
        <input type="hidden" name="act" id="act" value="index"/>
        <span>ID</span><input title="id" type="text" name="ad_id" id="ad_id" value="{$id}"/>
        <span>关键词</span><input title="关键词" type="text" name="keyword" id="keyword" value="{$keyword}"/>
        <input type="submit" class="btn" value="搜 索"/>
        <div class="clear"></div>
    </div>
</form>

<div class="list">
    <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr class="h">
            <th>ID</th>
            <th>标题</th>
            <th>轮播图</th>
            <th>位置</th>
            <th>内容</th>
            <th>添加时间</th>
            <th>显示</th>
            <th>操作</th>
        </tr>
        {volist name="list" id="row" empty="暂时没有数据"}
        <tr bgcolor="white">
            <td align="center">{$row['id']}</td>
            <td align="center">{$row['title']}</td>
            <td height="60">
                <img src="{$row.pic}" height="50" />
            </td>
            <td align="center">{if $row.position==''}首页{else}{$row.position}{/if}</td>
            <td align="center">{$row['content']}</td>
            <td align="center">{$row.add_time|date="Y-m-d h:i:s",###}</td>
            <td align="center">{if $row.status==1}不显示{else}显示{/if}</td>
            <td align="center"><a class="ico2" href="edit?id={$row.id}"></a><a class="ico3 delete" href="delete?id={$row.id}"></a></td>
        </tr>
        <!--<tr bgcolor="white">-->
            <!--<td colspan="8" height="50">暂时没有数据</td>-->
        <!--</tr>-->
        {/volist}
    </table>

    <div class="clear"></div>
    <div class="mypage" stlye="text-align:right;display:line;">
        共 {$maxpages} 个数据 {$page}
    </div>
</div>
</div>
{include file="footer"}
